#!/usr/bin/env bash

git clone https://github.com/apache/incubator-dubbo-ops.git dubbo-ops

mvn clean package -f dubbo-ops

cp dubbo-ops/dubbo-admin/target/dubbo-admin-*.jar .

mv dubbo-admin-*.jar dubbo-admin.jar
chmod u+x dubbo-admin.jar

docker build -t local/dubbo-admin:latest .


#rm -rf dubbo-ops
rm -rf dubbo-admin.jar